package com.example.mvvmtemplate.page.login;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;

import com.example.mvvmtemplate.R;
import com.example.mvvmtemplate.base.dialog.BaseDialogFragment;

public class TestDialog extends BaseDialogFragment {

    public static TestDialog getInstance() {
        return new TestDialog();
    }

    @Override
    public int getLayout() {
        return R.layout.dialog_test;
    }

    @Override
    public void onCreateView(View view) {

    }

    @Override
    public void onActivityCreated(View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        Button btClose = view.findViewById(R.id.bt_close);
        btClose.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }

}
